﻿#ifndef POSTCOMMAND_CMDSETHEATMAPADDTRACER_H
#define POSTCOMMAND_CMDSETHEATMAPADDTRACER_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdSetHeatMapAddTracer : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdSetHeatMapAddTracer();
        ~CmdSetHeatMapAddTracer();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setHeatMapAddTracer(int mainWindowId, QString name, double x, double y, double value, int tracerStyle, int size, int penR, int penG, int penB, int penA,
            int interpolating, int curveInfoID, int tracerIndex);

    private:
        int m_mainWindowId;
        QString m_name;
        double m_x;
        double m_y;
        double m_value;
        int m_tracerStyle;
        int m_size;
        int m_penR;
        int m_penG;
        int m_penB;
        int m_penA;
        int m_interpolating;
        int m_curveInfoID;
        int m_tracerIndex;
    };
} // namespace PostCommand

#endif
